#####################build utils lib########################
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := utils/iniFile.cpp \
                   utils/timers.cpp  \
                   utils/thread.cpp  \
                   utils/RefBase.cpp \
                   utils/utils.cpp \
                   utils/fileHandle.cpp \
                   utils/FileMap.cpp

LOCAL_SRC_FILES += zip/core/zip_archive.cc \
                   zip/core/ZipEntry.cpp \
                   zip/core/ZipFile.cpp \
                   zip/core/ZipFileRO.cpp \
                   zip/core/ZipUtils.cpp

LOCAL_C_INCLUDES := $(BIGPIG_TOP)/base/include \
                    $(BIGPIG_TOP)/external/third_party/libpagemap/include/

LOCAL_SHARED_LIBRARIES := libpagemap libz

LOCAL_CPPFLAGS := -std=c++11 -DHAVE_OFF64_T -DHAVE_POSIX_FILEMAP

LOCAL_LDLIBS := -lpthread -lz

LOCAL_MODULE:= libutils

include $(BUILD_SHARED_LIBRARY)
